package com.yhn.init.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 签到记录
 *
 * @TableName attendance
 */
@TableName(value = "attendance")
@Data
public class Attendance implements Serializable {
    /**
     * 签到表ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 签到用户的ID
     */
    private Long userId;

    /**
     * 签到时间
     */
    private Date attendanceTime;

    /**
     * 连续签到天数
     */
    private Integer amount;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
